﻿// JavaScript Document
var map;
var localStr = top.location.toString();
var centerMap = {
	"lng": 103.928015,//经度
	"lat": 33.271447//维度
};
var googleKeyObj = {
	"ectrip104": "ABQIAAAA3Jx5iNrIyJEhea8EOgrLfxR6AA57H_p5J78S9JOfizpHT7HukxReC07CQwPYmY9pNpQUeUbI87F7WA",
	"ectrip102": "ABQIAAAA3Jx5iNrIyJEhea8EOgrLfxS1OzmB9zpTMsFwSXszQ11EzdD6DxRY3_l7NYVCCkTSxdddRvNUH4b0HQ",
	"ectrip15": "ABQIAAAA3Jx5iNrIyJEhea8EOgrLfxQ_dAQqo03RS56NMawtmNNQF2tmJBTy9ysppns82TwLT7IQMds5OvKAJg",
	"hgs": "ABQIAAAA3Jx5iNrIyJEhea8EOgrLfxQEJsr2QN6thYOv6yKJtiA1acy5GBQNhjt9dHsZPmBm21Pl4jMCee2XNg",
	"xopo": "ABQIAAAA3Jx5iNrIyJEhea8EOgrLfxQr2W1m1tfuLZOjRa6jj5ALdYixjxTn-R3ZvVsdUFUaR0fMUqJfZ0PqhQ",
	"ectrip": "ABQIAAAA3Jx5iNrIyJEhea8EOgrLfxQFGqnBIz-VfqZsDmdlDq3b-X6i6hTSjZgEYCjIoRjhw7T4H_6O-JJhbQ",
	"wyscn": "ABQIAAAA3Jx5iNrIyJEhea8EOgrLfxQWm4wTm33emDnmG85S6DyXb58jWBTHZ1_nX9sGVBZWbNJR2mALC0gVow"
};
var googleKey = googleKeyObj["ectrip104"];
if (localStr.indexOf("0\.102") != -1) {
	googleKey = googleKeyObj["ectrip102"];
} else if (localStr.indexOf("1\.15") != -1) {
	googleKey = googleKeyObj["ectrip15"];
} else if (localStr.indexOf("hgscn\.com") != -1) {
	googleKey = googleKeyObj["hgs"];
} else if (localStr.indexOf("xopo\.cn") != -1) {
	googleKey = googleKeyObj["xopo"];
} else if (localStr.indexOf("ectrip\.com") != -1) {
	googleKey = googleKeyObj["ectrip"];
} else if (localStr.indexOf("wyscn\.com") != -1) {
	googleKey = googleKeyObj["wyscn"];
}
document.write("<script src=\"http://api.map.baidu.com/api?v=1.3&amp;key=" + googleKey + "\" type=\"text\/javascript\"><\/script>");